import { ApiProperty } from '@nestjs/swagger';
import { Decorator_DtoIsNumber_Base } from '@/common/decorators/dtoIsNumber';
import { IsOptional, IsString } from 'class-validator';

export class InviteRelation_InviteListFind_Dto {
  @Decorator_DtoIsNumber_Base()
  @IsOptional()
  size?: number;

  @Decorator_DtoIsNumber_Base()
  @IsOptional()
  page?: number;

  @Decorator_DtoIsNumber_Base()
  @ApiProperty({ description: '邀请者用户Id' })
  @IsOptional()
  inviterId?: number;

  @IsString()
  @IsOptional()
  @ApiProperty({ description: '邀请者用户名称' })
  inviterName?: string;

  @Decorator_DtoIsNumber_Base()
  @ApiProperty({ description: '被邀请者用户Id' })
  @IsOptional()
  inviteeId?: number;

  @IsString()
  @IsOptional()
  @ApiProperty({ description: '开始时间', type: 'bigint' })
  startTime?: number;

  @IsString()
  @IsOptional()
  @ApiProperty({ description: '结束时间', type: 'bigint' })
  endTime?: number;
}
